const express = require('express')
const router = express.Router()

const systemSettingController = require('../controllers/systemSettingController')

// 合法性校验
const expressJoi = require('../schemas//express-joi')
const { system_setting_add_schema, system_setting_update_schema } = require('../schemas/systemSettingSchema')


// 列表
router.post('/list', systemSettingController.list)
// 添加
router.post('/add', expressJoi(system_setting_add_schema),systemSettingController.add)
// 删除
router.post('/delete', systemSettingController.delete)
// 更新
router.post('/update',expressJoi(system_setting_update_schema),systemSettingController.update)

module.exports = router
